<?php
/** @noinspection PhpMissingReturnTypeInspection */
declare(strict_types=1);

namespace Dreamcat\ApiDocTest\Demo\Ctl;

use Dreamcat\ApiDocTest\Demo\Popo\PathO;
use DreamCat\ControllerParamGen\Annotation\CtlParamType;

/**
 * 用来测试异常的控制器
 * @author vijay
 */
class ErrorController
{
    public function withPath(#[CtlParamType(CtlParamType::TYPE_PATH_VARIABLE)] string $p)
    {

    }

    public function withPathEmpty(#[CtlParamType(CtlParamType::TYPE_PATH_VARIABLE)] PathO $p)
    {
    }

    public function withMulPath(#[CtlParamType(CtlParamType::TYPE_COOKIE, "aa/bb")] string $p)
    {

    }

    public function withCompHeader(#[CtlParamType(CtlParamType::TYPE_HEADER, "a")] PathO $pathO)
    {

    }
}

# end of file
